home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
icon
/
packages.lha
/
packages
/
atari
/
ats.arc
/
STAND.ARC
/
IO.OUT
< prev
next >
Wrap
Text File
|
1990-03-28
|
15KB
|
319 lines
----> &null
f := open("foo.baz","w") ----> file(foo.baz)
write(f,"hello world") ----> "hello world"
close(f) ----> file(foo.baz)
F := open("io.icn") ----> file(io.icn)
)g,f,e,d,c,b,a(yarra drocer
)(1p erudecorp
)"enon" | )(egami," >---- "(etirw
)"enon" | ))"w","zab.oof"(nepo =: f(egami," >---- )"\w"\,"\zab.oof"\(nepo =: f"(etirw
)"enon" | ))"dlrow olleh",f(etirw(egami," >---- )"\dlrow olleh"\,f(etirw"(etirw
)"enon" | ))f(esolc(egami," >---- )f(esolc"(etirw
)"enon" | ))"nci.oi"(nepo =: F(egami," >---- )"\nci.oi"\(nepo =: F"(etirw
)"enon" | )))F!(esrever(etirw yreve(egami," >---- ))F!(esrever(etirw yreve"(etirw
)"enon" | ))F(esolc(egami," >---- )F(esolc"(etirw
)"enon" | ))"nci.oi"(nepo =: F(egami," >---- )"\nci.oi"\(nepo =: F"(etirw
)"enon" | )))F!(pam(etirw yreve(egami," >---- ))F!(pam(etirw yreve"(etirw
)"enon" | ))F(esolc(egami," >---- )F(esolc"(etirw
)"enon" | ))"nci.oi"(nepo =: F(egami," >---- )"\nci.oi"\(nepo =: F"(etirw
dne
)(2p erudecorp
)"enon" | )))"-----" || tesc&,"uoiea" || tesc&,F!(pam(etirw yreve(egami," >---- ))"\-----"\ || tesc&,"\uoiea"\ || tesc&,F!(pam(etirw yreve"(etirw
)"enon" | ))F(esolc(egami," >---- )F(esolc"(etirw
)"enon" | ))"nci.oi"(nepo =: F(egami," >---- )"\nci.oi"\(nepo =: F"(etirw
)"enon" | )))"uoiea" || tesc&," " || tesc&,F!(pam(etirw yreve(egami," >---- ))"\uoiea"\ || tesc&,"\ "\ || tesc&,F!(pam(etirw yreve"(etirw
)"enon" | ))F(esolc(egami," >---- )F(esolc"(etirw
)"enon" | ))"nci.oi"(nepo =: f(egami," >---- )"\nci.oi"\(nepo =: f"(etirw
)"enon" | )))f(sdaer(setirw elihw(egami," >---- ))f(sdaer(setirw elihw"(etirw
)"enon" | ))f(esolc(egami," >---- )f(esolc"(etirw
)"enon" | ))"nci.oi"(nepo =: f(egami," >---- )"\nci.oi"\(nepo =: f"(etirw
)"enon" | )))01,f(sdaer(setirw elihw(egami," >---- ))01,f(sdaer(setirw elihw"(etirw
)"enon" | ))"nci.oi"(nepo =: f(egami," >---- )"\nci.oi"\(nepo =: f"(etirw
dne
)(3p erudecorp
)"enon" | )))f(daer(etirw elihw(egami," >---- ))f(daer(etirw elihw"(etirw
)"enon" | ))f(esolc(egami," >---- )f(esolc"(etirw
dne
)(niam erudecorp
)(1p
)(2p
)(3p
dne
f ,F labolg
every write(reverse(!F)) ----> none
close(F) ----> file(io.icn)
F := open("io.icn") ----> file(io.icn)
record array(a,b,c,d,e,f,g)
procedure p1()
write(" ----> ",image() | "none")
write("f := open(\"foo.baz\",\"w\") ----> ",image(f := open("foo.baz","w")) | "none")
write("write(f,\"hello world\") ----> ",image(write(f,"hello world")) | "none")
write("close(f) ----> ",image(close(f)) | "none")
write("f := open(\"io.icn\") ----> ",image(f := open("io.icn")) | "none")
write("every write(reverse(!f)) ----> ",image(every write(reverse(!f))) | "none")
write("close(f) ----> ",image(close(f)) | "none")
write("f := open(\"io.icn\") ----> ",image(f := open("io.icn")) | "none")
write("every write(map(!f)) ----> ",image(every write(map(!f))) | "none")
write("close(f) ----> ",image(close(f)) | "none")
write("f := open(\"io.icn\") ----> ",image(f := open("io.icn")) | "none")
end
procedure p2()
write("every write(map(!f,&cset || \"aeiou\",&cset || \"-----\")) ----> ",image(every write(map(!f,&cset || "aeiou",&cset || "-----"))) | "none")
write("close(f) ----> ",image(close(f)) | "none")
write("f := open(\"io.icn\") ----> ",image(f := open("io.icn")) | "none")
write("every write(map(!f,&cset || \" \",&cset || \"aeiou\")) ----> ",image(every write(map(!f,&cset || " ",&cset || "aeiou"))) | "none")
write("close(f) ----> ",image(close(f)) | "none")
write("f := open(\"io.icn\") ----> ",image(f := open("io.icn")) | "none")
write("while writes(reads(f)) ----> ",image(while writes(reads(f))) | "none")
write("close(f) ----> ",image(close(f)) | "none")
write("f := open(\"io.icn\") ----> ",image(f := open("io.icn")) | "none")
write("while writes(reads(f,10)) ----> ",image(while writes(reads(f,10))) | "none")
write("f := open(\"io.icn\") ----> ",image(f := open("io.icn")) | "none")
end
procedure p3()
write("while write(read(f)) ----> ",image(while write(read(f))) | "none")
write("close(f) ----> ",image(close(f)) | "none")
end
procedure main()
p1()
p2()
p3()
end
global f, f
every write(map(!F)) ----> none
close(F) ----> file(io.icn)
F := open("io.icn") ----> file(io.icn)
r-c-rd -rr-y(-,b,c,d,-,f,g)
pr-c-d-r- p1()
wr-t-(" ----> ",-m-g-() | "n-n-")
wr-t-("f := -p-n(\"f--.b-z\",\"w\") ----> ",-m-g-(f := -p-n("f--.b-z","w")) | "n-n-")
wr-t-("wr-t-(f,\"h-ll- w-rld\") ----> ",-m-g-(wr-t-(f,"h-ll- w-rld")) | "n-n-")
wr-t-("cl-s-(f) ----> ",-m-g-(cl-s-(f)) | "n-n-")
wr-t-("F := -p-n(\"--.-cn\") ----> ",-m-g-(F := -p-n("--.-cn")) | "n-n-")
wr-t-("-v-ry wr-t-(r-v-rs-(!F)) ----> ",-m-g-(-v-ry wr-t-(r-v-rs-(!F))) | "n-n-")
wr-t-("cl-s-(F) ----> ",-m-g-(cl-s-(F)) | "n-n-")
wr-t-("F := -p-n(\"--.-cn\") ----> ",-m-g-(F := -p-n("--.-cn")) | "n-n-")
wr-t-("-v-ry wr-t-(m-p(!F)) ----> ",-m-g-(-v-ry wr-t-(m-p(!F))) | "n-n-")
wr-t-("cl-s-(F) ----> ",-m-g-(cl-s-(F)) | "n-n-")
wr-t-("F := -p-n(\"--.-cn\") ----> ",-m-g-(F := -p-n("--.-cn")) | "n-n-")
-nd
pr-c-d-r- p2()
wr-t-("-v-ry wr-t-(m-p(!F,&cs-t || \"-----\",&cs-t || \"-----\")) ----> ",-m-g-(-v-ry wr-t-(m-p(!F,&cs-t || "-----",&cs-t || "-----"))) | "n-n-")
wr-t-("cl-s-(F) ----> ",-m-g-(cl-s-(F)) | "n-n-")
wr-t-("F := -p-n(\"--.-cn\") ----> ",-m-g-(F := -p-n("--.-cn")) | "n-n-")
wr-t-("-v-ry wr-t-(m-p(!F,&cs-t || \" \",&cs-t || \"-----\")) ----> ",-m-g-(-v-ry wr-t-(m-p(!F,&cs-t || " ",&cs-t || "-----"))) | "n-n-")
wr-t-("cl-s-(F) ----> ",-m-g-(cl-s-(F)) | "n-n-")
wr-t-("f := -p-n(\"--.-cn\") ----> ",-m-g-(f := -p-n("--.-cn")) | "n-n-")
wr-t-("wh-l- wr-t-s(r--ds(f)) ----> ",-m-g-(wh-l- wr-t-s(r--ds(f))) | "n-n-")
wr-t-("cl-s-(f) ----> ",-m-g-(cl-s-(f)) | "n-n-")
wr-t-("f := -p-n(\"--.-cn\") ----> ",-m-g-(f := -p-n("--.-cn")) | "n-n-")
wr-t-("wh-l- wr-t-s(r--ds(f,10)) ----> ",-m-g-(wh-l- wr-t-s(r--ds(f,10))) | "n-n-")
wr-t-("f := -p-n(\"--.-cn\") ----> ",-m-g-(f := -p-n("--.-cn")) | "n-n-")
-nd
pr-c-d-r- p3()
wr-t-("wh-l- wr-t-(r--d(f)) ----> ",-m-g-(wh-l- wr-t-(r--d(f))) | "n-n-")
wr-t-("cl-s-(f) ----> ",-m-g-(cl-s-(f)) | "n-n-")
-nd
pr-c-d-r- m--n()
p1()
p2()
p3()
-nd
gl-b-l F, f
every write(map(!F,&cset || "aeiou",&cset || "-----")) ----> none
close(F) ----> file(io.icn)
F := open("io.icn") ----> file(io.icn)
recorduarray(a,b,c,d,e,f,g)
procedureup1()
uuuwrite("u---->u",image()u|u"none")
uuuwrite("fu:=uopen(\"foo.baz\",\"w\")u---->u",image(fu:=uopen("foo.baz","w"))u|u"none")
uuuwrite("write(f,\"hellouworld\")u---->u",image(write(f,"hellouworld"))u|u"none")
uuuwrite("close(f)u---->u",image(close(f))u|u"none")
uuuwrite("Fu:=uopen(\"io.icn\")u---->u",image(Fu:=uopen("io.icn"))u|u"none")
uuuwrite("everyuwrite(reverse(!F))u---->u",image(everyuwrite(reverse(!F)))u|u"none")
uuuwrite("close(F)u---->u",image(close(F))u|u"none")
uuuwrite("Fu:=uopen(\"io.icn\")u---->u",image(Fu:=uopen("io.icn"))u|u"none")
uuuwrite("everyuwrite(map(!F))u---->u",image(everyuwrite(map(!F)))u|u"none")
uuuwrite("close(F)u---->u",image(close(F))u|u"none")
uuuwrite("Fu:=uopen(\"io.icn\")u---->u",image(Fu:=uopen("io.icn"))u|u"none")
end
procedureup2()
uuuwrite("everyuwrite(map(!F,&csetu||u\"aeiou\",&csetu||u\"-----\"))u---->u",image(everyuwrite(map(!F,&csetu||u"aeiou",&csetu||u"-----")))u|u"none")
uuuwrite("close(F)u---->u",image(close(F))u|u"none")
uuuwrite("Fu:=uopen(\"io.icn\")u---->u",image(Fu:=uopen("io.icn"))u|u"none")
uuuwrite("everyuwrite(map(!F,&csetu||u\"uuuuu\",&csetu||u\"aeiou\"))u---->u",image(everyuwrite(map(!F,&csetu||u"uuuuu",&csetu||u"aeiou")))u|u"none")
uuuwrite("close(F)u---->u",image(close(F))u|u"none")
uuuwrite("fu:=uopen(\"io.icn\")u---->u",image(fu:=uopen("io.icn"))u|u"none")
uuuwrite("whileuwrites(reads(f))u---->u",image(whileuwrites(reads(f)))u|u"none")
uuuwrite("close(f)u---->u",image(close(f))u|u"none")
uuuwrite("fu:=uopen(\"io.icn\")u---->u",image(fu:=uopen("io.icn"))u|u"none")
uuuwrite("whileuwrites(reads(f,10))u---->u",image(whileuwrites(reads(f,10)))u|u"none")
uuuwrite("fu:=uopen(\"io.icn\")u---->u",image(fu:=uopen("io.icn"))u|u"none")
end
procedureup3()
uuuwrite("whileuwrite(read(f))u---->u",image(whileuwrite(read(f)))u|u"none")
uuuwrite("close(f)u---->u",image(close(f))u|u"none")
end
procedureumain()
uuup1()
uuup2()
uuup3()
end
globaluF,uf
every write(map(!F,&cset || " ",&cset || "aeiou")) ----> none
close(F) ----> file(io.icn)
f := open("io.icn") ----> file(io.icn)
record array(a,b,c,d,e,f,g)
procedure p1()
write(" ----> ",image() | "none")
write("f := open(\"foo.baz\",\"w\") ----> ",image(f := open("foo.baz","w")) | "none")
write("write(f,\"hello world\") ----> ",image(write(f,"hello world")) | "none")
write("close(f) ----> ",image(close(f)) | "none")
write("F := open(\"io.icn\") ----> ",image(F := open("io.icn")) | "none")
write("every write(reverse(!F)) ----> ",image(every write(reverse(!F))) | "none")
write("close(F) ----> ",image(close(F)) | "none")
write("F := open(\"io.icn\") ----> ",image(F := open("io.icn")) | "none")
write("every write(map(!F)) ----> ",image(every write(map(!F))) | "none")
write("close(F) ----> ",image(close(F)) | "none")
write("F := open(\"io.icn\") ----> ",image(F := open("io.icn")) | "none")
end
procedure p2()
write("every write(map(!F,&cset || \"aeiou\",&cset || \"-----\")) ----> ",image(every write(map(!F,&cset || "aeiou",&cset || "-----"))) | "none")
write("close(F) ----> ",image(close(F)) | "none")
write("F := open(\"io.icn\") ----> ",image(F := open("io.icn")) | "none")
write("every write(map(!F,&cset || \" \",&cset || \"aeiou\")) ----> ",image(every write(map(!F,&cset || " ",&cset || "aeiou"))) | "none")
write("close(F) ----> ",image(close(F)) | "none")
write("f := open(\"io.icn\") ----> ",image(f := open("io.icn")) | "none")
write("while writes(reads(f)) ----> ",image(while writes(reads(f))) | "none")
write("close(f) ----> ",image(close(f)) | "none")
write("f := open(\"io.icn\") ----> ",image(f := open("io.icn")) | "none")
write("while writes(reads(f,10)) ----> ",image(while writes(reads(f,10))) | "none")
write("f := open(\"io.icn\") ----> ",image(f := open("io.icn")) | "none")
end
procedure p3()
write("while write(read(f)) ----> ",image(while write(read(f))) | "none")
write("close(f) ----> ",image(close(f)) | "none")
end
procedure main()
p1()
p2()
p3()
end
global F, f
while writes(reads(f)) ----> none
close(f) ----> file(io.icn)
f := open("io.icn") ----> file(io.icn)
record array(a,b,c,d,e,f,g)
procedure p1()
write(" ----> ",image() | "none")
write("f := open(\"foo.baz\",\"w\") ----> ",image(f := open("foo.baz","w")) | "none")
write("write(f,\"hello world\") ----> ",image(write(f,"hello world")) | "none")
write("close(f) ----> ",image(close(f)) | "none")
write("F := open(\"io.icn\") ----> ",image(F := open("io.icn")) | "none")
write("every write(reverse(!F)) ----> ",image(every write(reverse(!F))) | "none")
write("close(F) ----> ",image(close(F)) | "none")
write("F := open(\"io.icn\") ----> ",image(F := open("io.icn")) | "none")
write("every write(map(!F)) ----> ",image(every write(map(!F))) | "none")
write("close(F) ----> ",image(close(F)) | "none")
write("F := open(\"io.icn\") ----> ",image(F := open("io.icn")) | "none")
end
procedure p2()
write("every write(map(!F,&cset || \"aeiou\",&cset || \"-----\")) ----> ",image(every write(map(!F,&cset || "aeiou",&cset || "-----"))) | "none")
write("close(F) ----> ",image(close(F)) | "none")
write("F := open(\"io.icn\") ----> ",image(F := open("io.icn")) | "none")
write("every write(map(!F,&cset || \" \",&cset || \"aeiou\")) ----> ",image(every write(map(!F,&cset || " ",&cset || "aeiou"))) | "none")
write("close(F) ----> ",image(close(F)) | "none")
write("f := open(\"io.icn\") ----> ",image(f := open("io.icn")) | "none")
write("while writes(reads(f)) ----> ",image(while writes(reads(f))) | "none")
write("close(f) ----> ",image(close(f)) | "none")
write("f := open(\"io.icn\") ----> ",image(f := open("io.icn")) | "none")
write("while writes(reads(f,10)) ----> ",image(while writes(reads(f,10))) | "none")
write("f := open(\"io.icn\") ----> ",image(f := open("io.icn")) | "none")
end
procedure p3()
write("while write(read(f)) ----> ",image(while write(read(f))) | "none")
write("close(f) ----> ",image(close(f)) | "none")
end
procedure main()
p1()
p2()
p3()
end
global F, f
while writes(reads(f,10)) ----> none
f := open("io.icn") ----> file(io.icn)
record array(a,b,c,d,e,f,g)
procedure p1()
write(" ----> ",image() | "none")
write("f := open(\"foo.baz\",\"w\") ----> ",image(f := open("foo.baz","w")) | "none")
write("write(f,\"hello world\") ----> ",image(write(f,"hello world")) | "none")
write("close(f) ----> ",image(close(f)) | "none")
write("F := open(\"io.icn\") ----> ",image(F := open("io.icn")) | "none")
write("every write(reverse(!F)) ----> ",image(every write(reverse(!F))) | "none")
write("close(F) ----> ",image(close(F)) | "none")
write("F := open(\"io.icn\") ----> ",image(F := open("io.icn")) | "none")
write("every write(map(!F)) ----> ",image(every write(map(!F))) | "none")
write("close(F) ----> ",image(close(F)) | "none")
write("F := open(\"io.icn\") ----> ",image(F := open("io.icn")) | "none")
end
procedure p2()
write("every write(map(!F,&cset || \"aeiou\",&cset || \"-----\")) ----> ",image(every write(map(!F,&cset || "aeiou",&cset || "-----"))) | "none")
write("close(F) ----> ",image(close(F)) | "none")
write("F := open(\"io.icn\") ----> ",image(F := open("io.icn")) | "none")
write("every write(map(!F,&cset || \" \",&cset || \"aeiou\")) ----> ",image(every write(map(!F,&cset || " ",&cset || "aeiou"))) | "none")
write("close(F) ----> ",image(close(F)) | "none")
write("f := open(\"io.icn\") ----> ",image(f := open("io.icn")) | "none")
write("while writes(reads(f)) ----> ",image(while writes(reads(f))) | "none")
write("close(f) ----> ",image(close(f)) | "none")
write("f := open(\"io.icn\") ----> ",image(f := open("io.icn")) | "none")
write("while writes(reads(f,10)) ----> ",image(while writes(reads(f,10))) | "none")
write("f := open(\"io.icn\") ----> ",image(f := open("io.icn")) | "none")
end
procedure p3()
write("while write(read(f)) ----> ",image(while write(read(f))) | "none")
write("close(f) ----> ",image(close(f)) | "none")
end
procedure main()
p1()
p2()
p3()
end
global F, f
while write(read(f)) ----> none
close(f) ----> file(io.icn)